/*******************************************************************************
 * $Header$
 * $Revision$
 * $Date$
 *
 *==============================================================================
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 * 
 * Created on 2012-12-31
 *******************************************************************************/

package com.hms.intf;

import com.eos.system.annotation.Bizlet;

public class YmhIntface {

	@Bizlet(value = "ȡID")
	public Long[] getIds(int idCount, String seqName) throws Exception {

		if (idCount <= 0) {
			idCount = 1;
		}

		if (idCount > 20) {
			idCount = 20;
		}

		Long[] result = new Long[idCount];

		for (int i = 0; i < idCount; i++) {
			result[i] = com.eos.foundation.database.DatabaseExt
					.getNextSequence(seqName);
		}

		return result;

	}
}
